﻿using System;
using System.Collections;
using System.Collections.Generic;
using StrawberryShake;

namespace StrawberryShake.Client.StarWarsAll
{
    [System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")]
    public class Queries
        : IDocument
    {
        private readonly byte[] _hashName = new byte[]
        {
            109,
            100,
            53,
            72,
            97,
            115,
            104
        };
        private readonly byte[] _hash = new byte[]
        {
            111,
            112,
            76,
            116,
            56,
            50,
            121,
            102,
            43,
            67,
            72,
            52,
            56,
            98,
            112,
            114,
            112,
            47,
            43,
            99,
            69,
            65,
            61,
            61
        };
        private readonly byte[] _content = new byte[]
        {
            113,
            117,
            101,
            114,
            121,
            32,
            103,
            101,
            116,
            72,
            101,
            114,
            111,
            40,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            69,
            112,
            105,
            115,
            111,
            100,
            101,
            41,
            32,
            123,
            32,
            104,
            101,
            114,
            111,
            40,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            101,
            114,
            111,
            32,
            125,
            32,
            125,
            32,
            113,
            117,
            101,
            114,
            121,
            32,
            103,
            101,
            116,
            72,
            117,
            109,
            97,
            110,
            40,
            36,
            105,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            104,
            117,
            109,
            97,
            110,
            40,
            105,
            100,
            58,
            32,
            36,
            105,
            100,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            101,
            114,
            111,
            32,
            125,
            32,
            125,
            32,
            113,
            117,
            101,
            114,
            121,
            32,
            115,
            101,
            97,
            114,
            99,
            104,
            40,
            36,
            116,
            101,
            120,
            116,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            115,
            101,
            97,
            114,
            99,
            104,
            40,
            116,
            101,
            120,
            116,
            58,
            32,
            36,
            116,
            101,
            120,
            116,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            101,
            114,
            111,
            32,
            46,
            46,
            46,
            32,
            83,
            116,
            97,
            114,
            115,
            104,
            105,
            112,
            32,
            125,
            32,
            125,
            32,
            109,
            117,
            116,
            97,
            116,
            105,
            111,
            110,
            32,
            99,
            114,
            101,
            97,
            116,
            101,
            82,
            101,
            118,
            105,
            101,
            119,
            40,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            69,
            112,
            105,
            115,
            111,
            100,
            101,
            33,
            44,
            32,
            36,
            114,
            101,
            118,
            105,
            101,
            119,
            58,
            32,
            82,
            101,
            118,
            105,
            101,
            119,
            73,
            110,
            112,
            117,
            116,
            33,
            41,
            32,
            123,
            32,
            99,
            114,
            101,
            97,
            116,
            101,
            82,
            101,
            118,
            105,
            101,
            119,
            40,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            44,
            32,
            114,
            101,
            118,
            105,
            101,
            119,
            58,
            32,
            36,
            114,
            101,
            118,
            105,
            101,
            119,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            82,
            101,
            118,
            105,
            101,
            119,
            32,
            125,
            32,
            125,
            32,
            115,
            117,
            98,
            115,
            99,
            114,
            105,
            112,
            116,
            105,
            111,
            110,
            32,
            111,
            110,
            82,
            101,
            118,
            105,
            101,
            119,
            40,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            69,
            112,
            105,
            115,
            111,
            100,
            101,
            33,
            41,
            32,
            123,
            32,
            111,
            110,
            82,
            101,
            118,
            105,
            101,
            119,
            40,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            58,
            32,
            36,
            101,
            112,
            105,
            115,
            111,
            100,
            101,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            82,
            101,
            118,
            105,
            101,
            119,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            101,
            114,
            111,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            46,
            46,
            46,
            32,
            68,
            114,
            111,
            105,
            100,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            111,
            110,
            32,
            72,
            117,
            109,
            97,
            110,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            70,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            104,
            101,
            105,
            103,
            104,
            116,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            68,
            114,
            111,
            105,
            100,
            32,
            111,
            110,
            32,
            68,
            114,
            111,
            105,
            100,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            70,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            104,
            101,
            105,
            103,
            104,
            116,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            83,
            116,
            97,
            114,
            115,
            104,
            105,
            112,
            32,
            111,
            110,
            32,
            83,
            116,
            97,
            114,
            115,
            104,
            105,
            112,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            97,
            109,
            101,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            70,
            114,
            105,
            101,
            110,
            100,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            67,
            111,
            110,
            110,
            101,
            99,
            116,
            105,
            111,
            110,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            111,
            100,
            101,
            115,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            97,
            115,
            78,
            97,
            109,
            101,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            97,
            109,
            101,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            72,
            97,
            115,
            70,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            111,
            110,
            32,
            67,
            104,
            97,
            114,
            97,
            99,
            116,
            101,
            114,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            102,
            114,
            105,
            101,
            110,
            100,
            115,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            70,
            114,
            105,
            101,
            110,
            100,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            82,
            101,
            118,
            105,
            101,
            119,
            32,
            111,
            110,
            32,
            82,
            101,
            118,
            105,
            101,
            119,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            99,
            111,
            109,
            109,
            101,
            110,
            116,
            97,
            114,
            121,
            32,
            125
        };

        public ReadOnlySpan<byte> HashName => _hashName;

        public ReadOnlySpan<byte> Hash => _hash;

        public ReadOnlySpan<byte> Content => _content;

        public static Queries Default { get; } = new Queries();

        public override string ToString() => 
            @"query getHero($episode: Episode) {
              hero(episode: $episode) {
                ... Hero
              }
            }
            
            query getHuman($id: String!) {
              human(id: $id) {
                ... Hero
              }
            }
            
            query search($text: String!) {
              search(text: $text) {
                ... Hero
                ... Starship
              }
            }
            
            mutation createReview($episode: Episode!, $review: ReviewInput!) {
              createReview(episode: $episode, review: $review) {
                ... Review
              }
            }
            
            subscription onReview($episode: Episode!) {
              onReview(episode: $episode) {
                ... Review
              }
            }
            
            fragment Hero on Character {
              ... HasName
              ... Human
              ... Droid
            }
            
            fragment Human on Human {
              ... HasName
              ... HasFriends
              height
            }
            
            fragment Droid on Droid {
              ... HasName
              ... HasFriends
              height
            }
            
            fragment Starship on Starship {
              name
            }
            
            fragment Friend on CharacterConnection {
              nodes {
                ... HasName
              }
            }
            
            fragment HasName on Character {
              name
            }
            
            fragment HasFriends on Character {
              friends {
                ... Friend
              }
            }
            
            fragment Review on Review {
              commentary
            }";
    }
}
